﻿<%@ Page Language="C#" MasterPageFile="~/System/MasterPage.master" AutoEventWireup="true" CodeFile="CompanyList.aspx.cs" Inherits="HomePage_CompanyList" Title="Untitled Page" %>

<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMaster" Runat="Server">
   <script language="vbscript" src="../Common/yz.vbs"></script>
    <script language="javascript" type="text/javascript">
// <!CDATA[

function Button5_onclick() 
{
   window.open ("CompanyAdd.aspx",null)
}

// ]]>
    </script>
        <script language="vbscript" type="text/vbscript">
        Sub AreaSelect(byval id)
            Dim strReturnValue
	        strReturnValue = showModalDialog("../System/AreaSelect.aspx?ROOT=" & id,null,"dialogWidth:320px;dialogHeight:480px;status:0;scroll:no;center:yes;help:no;")
	        If Len(strReturnValue) > 0 Then
	            document.all("AreaId").value = Split(strReturnValue,vbCrLf)(0)
	            document.all("AreaName").value = Split(strReturnValue,vbCrLf)(1)
	        End If
        End Sub
        </script>
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td style="width: 4px">
                <img src="../images/intro_left.gif" width="4" height="34"></td>
            <td class="intro_wordbg">
                企业管理</td>
            <td background="../images/intro_bg.gif">
                <img src="../images/intro_right.jpg" width="118" height="34"></td>
        </tr>
    </table>
    <table id="tabData" width="98%" border="0" align="center" cellpadding="2" cellspacing="1">
        <tr>
            <td align="right">
                用户编码：</td>
            <td>
                <asp:TextBox ID="txtUserCode" runat="server"  InvertedComma="用户编码" Width="185px"></asp:TextBox></td>
            <td align="right">
                单位名称：</td>
            <td>
                <asp:TextBox ID="txtAttorneyName" runat="server"  InvertedComma="单位名称" Width="185px"></asp:TextBox></td>
            <td>
                </td>
            <td>
                </td>
        </tr>
        <tr>
            <td align="right">企业类型：</td>
            <td>
                <asp:DropDownList ID="lstQYType" runat="server"  Width="185px">
                </asp:DropDownList></td>
            <td align="right">
                地区：</td>
            <td><input name="AreaName" type="text" readonly   style="width:185px" value='<%=strAreaName %>'  />
                    <input name="AreaId" type="hidden" style="width: 6px" value='<%=strAreaId %>'/>
                    <a href="javascript:AreaSelect(0)">选择地区</a> 
               </td>
        <td><asp:Button ID="Button6" runat="server" OnClick="Button5_Click" Text="" CssClass="button_Query" OnClientClick="javascript:return CheckForm();" /></td>
        <td></td>
        </tr>
    </table>
    <asp:DataList ID="DlAttorney" runat="server" Width="98%" CssClass='table_table' HeaderStyle-CssClass='table_title'>
        <ItemStyle CssClass="table_td" />
        <AlternatingItemStyle CssClass="table_td2" />
        <HeaderTemplate>
            <table width='98%'>
                <tr>
                    <td  nowrap width="65%">
                        企业名称</td>
                    <td nowrap width="40%">
                        企业编码</td>
            </table>
        </HeaderTemplate>
        <ItemTemplate>
            <table width='98%'>
                <tr>
                    <td width="65%" >
                        <%# DataBinder.Eval(Container.DataItem, "CompanyName")%>
                    </td>
                    <td width="40%" >
                       <a href='../agency/company_xq.aspx?&Accountid_PS=<%# DataBinder.Eval(Container.DataItem, "accountid")%>' target="_blank" ><%# DataBinder.Eval(Container.DataItem, "UserCode")%></a>
                    </td>
                     
                    </td>

                 </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
    <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
</asp:Content>

